package com.mmp.main.DB;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.mmp.common.DB.DBManager;
import com.mmp.main.entity.SpInventoryContent;
import com.mmp.main.entity.SpInventoryTransaction;

@Repository
@Transactional(rollbackFor = Exception.class)
public class DBTransactionManager extends DBManager {

	@Transactional(rollbackFor = Exception.class)
	public void save(SpInventoryContent c, SpInventoryTransaction t) throws Exception {
		persistEntity(c);
		// String x = null;
		// x.length();
		persistEntity(t);
	}

}
